package net.coolcollege.annotation;

import net.coolcollege.configuration.MqSenderConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

/**
 * 开启MqSender
 *
 * @author mengzhg
 */
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.TYPE})
@Documented
@Import(MqSenderConfiguration.class)
@Configuration
public @interface EnableMqSender {

    String name() default "activemq";
}
